﻿using TestBat.IModels.Domain;

namespace TestBat.Models.Domain
{
    public class MultipleChoiceSolution : ChoiceSolution, IMultipleChoiceSolution
    {
        public override int? GetPercentage()
        {
            if (IsEmtpy) return 0;

            return (Pick.Correct) ? 100 : 0;
        }

        public override bool IsEmtpy
        {
            get
            {
                return Pick == null;
            }
        }

        public virtual ITestChoice Pick
        {
            get;
            set;
        }
    }
}
